package com.longcai.piaojia.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.longcai.piaojia.R;
import com.zcx.helper.scale.ScaleScreenHelperFactory;

/**
 * Created by Administrator on 2015/9/4 0004.
 */
public class GoodsEvaluateView extends StartView {

    public GoodsEvaluateView(Context context, AttributeSet attrs) {

        super(context, attrs);

    }

    @Override
    protected boolean isClick() {

        return true;

    }

    @Override
    protected int max() {

        return 5;

    }

    @Override
    protected int selectYes() {

        return R.mipmap.goods_evaluate_star_sel;

    }

    @Override
    protected int selectNo() {

        return R.mipmap.goods_evaluate_star_no;

    }

    @Override
    protected View getView(View view) {

        LayoutParams layoutParams = new LayoutParams(ScaleScreenHelperFactory.getInstance().getWidthHeight(40), ScaleScreenHelperFactory.getInstance().getWidthHeight(38));

        layoutParams.rightMargin = ScaleScreenHelperFactory.getInstance().getWidthHeight(3);

        view.setLayoutParams(layoutParams);

        return view;

    }

}
